<template>
    <div class="toast">
<p><van-icon name="warning-o" size="25px" /></p><p>{{ message }}</p>
    </div>
</template>

<script setup>
defineProps(['message'])
</script>

<style lang="scss" scoped>
.toast{
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 130px;
    height: 130px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    padding: 5px;
    background: rgba($color: #000000, $alpha: .75);
    border-radius: 5px;
    color: white;
    z-index: 111;
    p{
        font-size: 16px;
        text-align: center;
    }
}
</style>